#ifndef QDLGLOGIN_H
#define QDLGLOGIN_H

#include <QDialog>
#include <QTcpSocket> //QTcpSocket头文件

namespace Ui {
class qdlglogin;
}

class qdlglogin : public QDialog
{
    Q_OBJECT

public:
    explicit qdlglogin(QWidget *parent = nullptr);
    ~qdlglogin();

private slots:
    void onReadyRead();

    void on_cmdlinkRegister_clicked();

    void on_pushbtnLogin_clicked();

    void on_btnServerOk_clicked();

    void on_btnServerCanel_clicked();

    void on_btnServer_clicked();

private:
    Ui::qdlglogin *ui;


    //add by dimon, 2024-03-16 15:02
    bool serverOk;
    QString ip;
    QString port;
    quint32 userid;
    QString password;
    QTcpSocket *tcpSocket;
};

#endif // QDLGLOGIN_H
